package sng.modules.view.components.city.logic.event
{
	import flash.events.Event;
	
	public class TileEvent extends Event
	{
		static public const CANT_MOVE:String = "cantMove";
		static public const MOVE_COMPLETE:String = "moveComplete";
		static public const DESELECTED:String = "deselected";
		public static const SELECTED:String = "tileSelected";
		public static const SKIN_LOAD_COMPLETE:String = "skinLoadComplete";
		
		public var data:*;
		
		public function TileEvent(type:String, data:* = null) 
		{ 
			super(type);
			this.data = data;
		} 
		
		public override function clone():Event 
		{ 
			return new TileEvent(type,data);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("TileEvent", "type", "data"); 
		}
	}
}